package com.venutech.gongan.vo;

import java.text.SimpleDateFormat;
import java.util.Date;

public abstract class AbstractDto {

    protected String formatDateString(Date date, String DateFormat) {
        if (date == null){
            return null;
        }
        try {
            SimpleDateFormat myFmt = new SimpleDateFormat(DateFormat);
            return myFmt.format(date);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }


}
